package com.yunding.house.pojo;


import lombok.Data;
import java.util.Date;
import java.util.UUID;

/**
 * <p>
 * 用户登录账户表
 * </p>
 *
 * @author linyang
 * @since 2019-08-15
 */
@Data
public class User   {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String userid = UUID.randomUUID().toString().replace("-", "").toLowerCase();;

    /**
     * 用户名
     */
    private String username;

    private String password;

    /**
     * 姓名
     */
    private String name;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 创建时间
     */
    private Date createtime;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 启用
     */
    private Boolean enable;

    /**
     * 性别
     */
    private String sex;

    private String pinyin;

    /**
     * 角色 一对多
     */
    private String roles;


    /**
     * 注册邀请码
     */
    private String code;

    /**
     * 微信openid
     */
    private String openid;


    @Override
    public String toString() {
        return "User{" +
                "userid='" + userid + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", avatar='" + avatar + '\'' +
                ", createtime=" + createtime +
                ", phone='" + phone + '\'' +
                ", enable=" + enable +
                ", sex='" + sex + '\'' +
                ", pinyin='" + pinyin + '\'' +
                ", roles='" + roles + '\'' +
                ", code='" + code + '\'' +
                ", openid='" + openid + '\'' +
                '}';
    }
}
